package com.gz.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/computer")
public class ComputerHandler {

    @RequestMapping(value = "/reg")
    //注意这里的参数名字要与form列表中name的属性名一样，否则找不到
    public String buy(String brand,String price,String num){
        System.out.println("提交信息--brand="+brand+"-price="+price+"-num="+num);
        return "success";
    }
}
